
 
/*code race*/

gen race=q2

gen asian=0
recode asian (0=1) if race==1

gen latino=0
recode latino(0=1) if race==3

gen black=0
recode black(0=1) if race==2

summ asian latino black

/*code age*/

gen age=q1

summ age if asian==1
summ age if latino==1

/*code nativity*/

gen native=0
recode native(0=1) if q3==1
tab native

tab native if asian==1
tab native if latino==1

/*code ideology*/

rename q8 liberal
summ liberal if asian==1
summ liberal if latino==1

gen liberal1=(liberal-1)/6
summ liberal1

/*code female*/

gen female=0
recode female(0=1) if q9==1
tab female if asian==1
tab female if latino==1

/*education*/

tab q10 if asian==1
tab q10 if latino==1

rename q10 edu

gen edu1=(edu-1)/4
summ edu1


****code outcomes

/*immigration items*/

gen daca=q30
gen visas=q31

summ daca visas if asian==1
summ daca visas if latino==1

reg daca asian latino
reg visas asian latino

gen daca1=(daca-1)/6
summ daca1

gen visas1=(visas-1)/6
summ visas1


/* poc solidarity items*/

gen pocsol=q38
gen pocsam=q39

summ pocsol pocsam if asian==1
summ pocsol pocsam if latino==1

pwcorr pocsol pocsam if asian==1
pwcorr pocsol pocsam if latino==1

gen pocunity=(pocsol+pocsam)/2
summ pocunity

reg pocunity asian latino

gen pocunity1=(pocunity-1)/6
summ pocunity1


/*keep only asian americans and latinos*/

drop if black==1

gen asian1=0
recode asian1(0=1) if asian==1
tab asian1

pwcorr pocsol pocsam

gen pocasi=(pocunity1*asian1)

summ pocunity1 asian1 edu1 age female liberal 

***results reported in table 1

reg pocunity1 asian1 liberal native edu1 age female

reg daca1 pocunity1 asian1 liberal native edu1 age female 
reg visas1 pocunity1 asian1 liberal native edu1 age female 

***results reported in SI.2

gen solidasian=(pocunity*asian1)

reg visas1 pocunity1 asian1 solidasian liberal native edu1 age female, robust 
reg daca1 pocunity1 asian1 solidasian liberal native edu1 age female, robust
